<!doctype html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>后台登录-X-admin2.2</title>
        <meta name="renderer" content="webkit|ie-comp|ie-stand">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <meta http-equiv="Cache-Control" content="no-siteapp" />

        <link rel="stylesheet" href="./css/font.css">
        <link rel="stylesheet" href="./css/xadmin.css">
        <link rel="icon" type="image/png" href="icon/I.png">
        <script th:src="@{/js/jquery-3.6.0.js}"></script>
        <script th:src="@{/layui/dist/layui.js}"></script>
        <script th:src="@{/js/addyy.js}"></script>
        <script src="layer/layer.js"></script>
        <script src="layer/extend/layer.ext.js"></script>
        <style>
            #addAsset{
                width: 100px;
                height: 30px;
                line-height: 30px;
                background: #009F95;
                color: #FFFFFF;
                text-align: center;
            }
             table tr th{
                 text-align: center !important;
                 font-weight: bold !important;
             }
            tr td{
                text-align: center
            }
        </style>
    </head>
    <body style="background: rgb(241, 241, 241) !important;">
    <div class="box1" style="width: 98%; margin: 0 auto">
        <form class="layui-form" enctype="multipart/form-data">
            <table class="layui-table">
                <tr>
                    <td>应聘职位名称：</td>
                    <td><input type="text" class="layui-input" readonly="readonly" id="positionName"/></td>
                    <td>应聘职位编码：</td>
                    <td><input type="text" class="layui-input" readonly="readonly" id="positionId"/></td>
                    <td>职位分类</td>
                    <td><input type="text" class="layui-input" readonly="readonly" id="sort"/></td>
                    <td><div id="addAsset"><span>职位选择</span></div></td>
                </tr>
            </table>

            <table class="layui-table">

                <tr>
                    <td>姓名：</td>
                    <td><input type="text" class="layui-input" id="name"/></td>
                    <td>性别：</td>
                    <td>
                        <div class="layui-input-inline" style="display: block;">
                            <div class="layui-input-block" style="margin-left: 0px;">
                                <select name="city" lay-verify="" id="sex">
                                    <option value="">--请选择--</option>
                                    <option value="1">男</option>
                                    <option value="2">女</option>
                                </select>
                            </div>
                        </div>
                    </td>
                    <td>招聘类型</td>
                    <td>
                        <div class="layui-input-inline" style="display: block;">
                            <div class="layui-input-block" style="margin-left: 0px;">
                                <select name="city" lay-verify="" id="type">
                                    <option value="">--请选择--</option>
                                    <option value="校园招聘">校园招聘</option>
                                    <option value="社会招聘">社会招聘</option>
                                </select>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>EMAIL:</td>
                    <td><input type="text" class="layui-input" id="email"/></td>
                    <td>联系电话：</td>
                    <td><input type="text" class="layui-input" id="phone"/></td>
                    <td>户口所在地：</td>
                    <td><input type="text" class="layui-input" id="huKouAdress"/></td>
                </tr>
                <tr>
                    <td>住址：</td>

                    <td colspan="3"><input type="text" class="layui-input" id="nowAdress"/></td>
                    <td>政治面貌：</td>
                    <td><input type="text" class="layui-input" id="poStatus"/></td>
                </tr>
                <tr>
                    <td>身份证号：</td>
                    <td><input type="text" class="layui-input" id="cardId"/></td>
                    <td>毕业院校：</td>
                    <td><input type="text" class="layui-input" id="school"/></td>
                    <td>学历：</td>
                    <td>
                        <div class="layui-input-inline" style="display: block;">
                            <div class="layui-input-block" style="margin-left: 0px;">
                                <select name="city" lay-verify="" id="educationBackground">
                                    <option value="">--请选择--</option>
                                    <option value="专科">专科</option>
                                    <option value="本科">本科</option>
                                    <option value="硕士">硕士</option>
                                    <option value="博士">博士</option>
                                </select>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>专业：</td>
                    <td><input type="text" class="layui-input" id="major"/></td>
                    <td>工作经验：</td>
                    <td><input type="text" class="layui-input" id="experience"/></td>
                    <td>薪资要求：</td>
                    <td><input type="text" class="layui-input" id="salaryRequirement"/></td>
                </tr>
                <tr>
                    <td>是否在职：</td>
                    <td>
                        <div class="layui-input-inline" style="display: block;">
                            <div class="layui-input-block" style="margin-left: 0px;">
                                <select name="city" lay-verify="" id="isWork">
                                    <option value="">--请选择--</option>
                                    <option value="在职">在职</option>
                                    <option value="离职">离职</option>
                                </select>
                            </div>
                        </div>
                    </td>
                    <td>是否应届生：</td>
                    <td>
                        <div class="layui-input-inline" style="display: block;">
                            <div class="layui-input-block" style="margin-left: 0px;">
                                <select name="city" lay-verify="" id="isStudent">
                                    <option value="">--请选择--</option>
                                    <option value="是">是</option>
                                    <option value="否">否</option>
                                </select>
                            </div>
                        </div>
                    </td>
                    <td>登记时间：</td>
                    <td>

                        <input class="layui-input" type="date" id="rTime">

                    </td>
                </tr>
                <tr>
                    <td>个人履历：</td>
                    <td colspan="5">
					<textarea rows="10" class="layui-input" id="record">

					</textarea>
                    </td>
                </tr>
            </table>
            <table class="layui-table jiji">
                <tr>
                    <td>简历附件：</td>
                    <td>
                        <input type="text" class="wjName">
                        <input type="file" class="wjFile">
                        <input type="submit" value="上传">
                    </td>
                </tr>
                <tr>
                    <td>是否推荐面试</td>
                    <td>
                        <div class="layui-input-inline" style="display: block;">
                            <div class="layui-input-block" style="margin-left: 0px;">
                                <select name="city" lay-verify="" id="isInterview" onclick="tui()">
                                    <option value="">--请选择--</option>
                                    <option value="是">是</option>
                                    <option value="否">否</option>
                                </select>
                            </div>
                        </div>
                    </td>
                    <td>推荐人</td>
                    <td><input class="layui-input" type="text" id="referrer"></td>
                    <td>推荐时间</td>
                    <td>
                        <input class="layui-input" type="date" id="time">
                    </td>
                </tr>
                <tr>
                    <td>推荐面试意见：</td>
                    <td colspan="5"><textarea rows="10" class="layui-input" id="comment">

					</textarea></td>

                </tr>
            </table>
            <input type="button" class="layui-btn layui-btn-normal" value="保存" onclick="add()"/>&nbsp;&nbsp;&nbsp;&nbsp;

            <a href="/selyy"><input type="button" class="layui-btn layui-btn-normal" value="返回" /></a>
        </form>
    </div>

    </body>
    <script>
        //添加资产
        $("#addAsset").on("click", function() {
            layer.open({
                type : 2,
                title : '职位需求',
                area : [ '500px', '500px' ],
                fix : false,
                content : '1.html',
                end : function() {
                    dataTable.reloadTable();
                }
            });
        });
    </script>
    <script>
        layui.use('form', function() {
            var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

            //……

            //但是，如果你的HTML是动态生成的，自动渲染就会失效
            //因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
            form.render();
        });
    </script>
</html>